<!--
  // Creation History
  // --------------------------------------------------------------
  //	Company:			HTHK
  //	NAME:				StaffProjectList.jsp
  //	TITLE:				Staff Project List
  //	FUNCTION:			List the Searching result.
  //	BY:					Beyes Xia
  //	DATE:				17/12/2003
  // --------------------------------------------------------------
-->

<html>
<%@ include file="../tssheader.jsp" %>
<%@ page import="tss.staffproject.*" %>
<body>
<%
	 StaffProjectBean[] staffProjects = (StaffProjectBean[])request.getAttribute("staffProjects");
     if (staffProjects==null)
        staffProjects = new StaffProject[0];

	String staff_name[] = (String[])request.getAttribute("staff_name");
%>
<body >
<h2>Staff Project Maintenance</h2>
<INPUT type=button value=Back onclick="location.href= '<%=contextPath%>/tss/staffproject/StaffProjectSearch.jsp'">
<table cols=6 border=1 >
<thead>
  <td><b>Project&nbsp;Name</b></td>
  <td><b>Staff&nbsp;No</b></td>
  <td><b>Staff&nbsp;Name</b></td>
</thead>
<%  for (int i=0; i<staffProjects.length; i++)
    {
%>
<tr>
	<td><a	href="<%=contextPath%>/servlet/tss.staffproject.StaffProjectSearch?formAction=Update&project_name=<%=staffProjects[i].getProject_name()%>&staff_name=<%=staffProjects[i].getStaff_no()%>"
	><%=staffProjects[i].getProject_name()%></a></td>
    <td><%=staffProjects[i].getStaff_no()%></td>
    <td><%= staff_name[i] %></td>

</tr>
<%  } %>
</table>
</body>
<%@ include file="../tssfooter.jsp" %>
</body>
</html>

